export const isInRange = <T>(list: T[]) => {
  return (element: T): boolean => list.indexOf(element) !== -1;
};

export const isNotInRange = <T>(list: T[]) => {
  return (element: T): boolean => list.indexOf(element) === -1;
};
